
"----------------------
" Whitespace config
"----------------------
"
function! StripTrailingWhitespace()
  %s/\s\+$//e
endfunction

"autocmd BufWritePre * call StripTrailingWhitespace()
"autocmd InsertLeave * call StripTrailingWhitespace()

"autocmd InsertLeave *.{cpp,h,c,etc} call FixWhitespace()
"noremap <silent> <leader><space> :FixWhitespace<cr>:w<cr>
